package com.example.demo.controller.client;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yongsheng.he
 * @describe HelloWorld
 * @date 2017/10/09 16:47
 */
@RestController
@Slf4j
public class HelloWorldController
{
    @Value("${helloWorld}")
    private String aaa;
    
    public String getAaa() {
        return aaa;
    }
    
    public void setAaa(String aaa) {
        this.aaa = aaa;
    }
    
    @GetMapping("/hello")
    public String hello()
    {
        log.info(aaa);
        log.error("222");
        log.info("111");
        return "Hello World!";
    }
}
